package com.runda.sec;

import org.springframework.security.core.context.SecurityContextHolder;

import com.runda.entity.JwtUser;

public class SecContextUtil {
	public static JwtUser getCurrentUser() {
		JwtUser user=(JwtUser)SecurityContextHolder.getContext().getAuthentication().getPrincipal();
		return user;
	}
	
}
